package com.manysong.action;

import java.io.InputStream;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.ServletActionContext;

public class DownloadAction extends ActionSupport {
	public InputStream getDownloadFile(){
		return ServletActionContext.getServletContext().getResourceAsStream("/upload/2.doc");
	}
	
	public String execute() throws Exception{
		return SUCCESS;
	}
}
